\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 C++ compiler crash inline functions bug workaround\
\
Q: When I tried to compile some of my C++ files using the command "cc++ -g", the compiler just crashed, with a fatal signal 10. What can I do?\
\
A: This problem can be caused by your inline functions not having an argument name in the function definition. The workaround is to name the argument. For example, the following code snippet shows the problem and how to correct it:\
\
\pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f2\fs24\fc0 class Foo \{\
public:\
inline void* operator new(
\b size_t
\b0 )\
\{\
return FooBucket::free_list->allocate();\
\};\
\
\f0\fs28 The function
\b new
\b0 does not have an argument name. The fix is simply to add an argument name:\